home *** CD-ROM | disk | FTP | other *** search
- Path: hermes.is.co.za!news
- From: janinep@geoscience.org.za (Janine Prinsloo)
- Newsgroups: comp.lang.c++
- Subject: Array declaration
- Date: 4 Apr 1996 05:52:16 GMT
- Organization: Council for Geoscience
- Message-ID: <4jvo2g$mp2@hermes.is.co.za>
- NNTP-Posting-Host: 196.33.84.200
- X-Newsreader: WinVN 0.92.6+
-
- I declared the following array: dat[7][2048]
- In the program I made the stupid mistake of using loops going from 1 to 7
- and from 1 to 2048 instead of 0 to 6 and 0 to 2047. What I don't understand
- is that the program ran fine for a number of times (the program is repeatedly
- run by a batch program) before an error occurred.
-
- I would like to know why an error didn't occur immediately the first time
- the program was run.
-
- Janine
-
- (I used Borland C++ v4.0 to compile the program)
-